const http = 'http://localhost:3000/'
/*
 * @Author: Smile
 * @Date: 2021-02-01 13:43:55
 * @LastEditTime: 2021-02-01 13:58:39
 * @LastEditors: Smile
 * @Description: 启动本地node后台调试
 */
export const getSwiper = () => { 
  return new Promise(function (resolve, reject) {
    // 这个位置进行异步操作
    wx.request({
      url:http+'swiper/get',
      method:'POST',
      success: function (res) {
        resolve(res.data.data)
      },
      fail: function (err) {
        reject(err)
      },
    })
  }) 
}
